import axios from "../../../utils/axios";

// 添加反馈内容
export const feedback = (data: any) => {
  return axios({
    method: "post",
    url: "/prod-api/api/common/feedback",
    data,
    headers: {
      Authorization: window.localStorage.getItem("token"),
    },
  });
};

// 获取反馈列表

export const feedbackList = () => {
  return axios({
    method: "get",
    url: "/prod-api/api/common/feedback/list",
    headers: {
      Authorization: window.localStorage.getItem("token"),
    },
  });
};

// 获取反馈详情
export const getDetails = (params: any) => {
  return axios({
    method: "get",
    url: `/prod-api/api/common/feedback/${params}`,
    headers: {
        Authorization: window.localStorage.getItem("token"),
      },
  });
};
